libostree: Fix compiler warning
authorColin Walters <walters@verbum.org>
Tue, 10 Sep 2013 16:25:13 +0000 (12:25 -0400)
committerColin Walters <walters@verbum.org>
Tue, 10 Sep 2013 16:25:13 +0000 (12:25 -0400)
src/libostree/ostree-repo.c

index 0459fffe0723bccb3892d371b984fec958a0c8ed..28ec7ff6509f5eb042691dc13ad04cf78ee5fb68 100644 (file)
@@ -1415,21 +1415,21 @@ ostree_repo_read_commit (OstreeRepo   *self,
                          GError **error)
 {
   gboolean ret = FALSE;
-  gs_unref_object OstreeRepoFile *ret_root = NULL;
+  gs_unref_object GFile *ret_root = NULL;
   gs_free char *resolved_commit = NULL;
 
   if (!ostree_repo_resolve_rev (self, ref, FALSE, &resolved_commit, error))
     goto out;
 
-  ret_root = _ostree_repo_file_new_for_commit (self, resolved_commit, error);
+  ret_root = (GFile*) _ostree_repo_file_new_for_commit (self, resolved_commit, error);
   if (!ret_root)
     goto out;
 
-  if (!ostree_repo_file_ensure_resolved (ret_root, error))
+  if (!ostree_repo_file_ensure_resolved ((OstreeRepoFile*)ret_root, error))
     goto out;
 
   ret = TRUE;
-  ot_transfer_out_value(out_root, (GFile **) &ret_root);
+  ot_transfer_out_value(out_root, &ret_root);
   ot_transfer_out_value(out_commit, &resolved_commit);
  out:
   return ret;